package com.example.emos.workflow;

import org.activiti.engine.RuntimeService;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;

import javax.annotation.Resource;
import java.util.HashMap;

@SpringBootTest
public class Demo_4 {
    @Resource
    private RuntimeService runtimeService;

    @Test
    void run() {
        HashMap param=new HashMap(){{
            put("payment",18000);
        }};
        runtimeService.startProcessInstanceByKey("Process_1716354738786",param).getProcessInstanceId();

    }
}
